<template>
  <div class="HomeSwiParNavBox">
    <div class="Home_StyleTitle">
      <p><img class="NavImgX" src="../../assets/a.png.png" alt="" /></p>
      <h2 class="Home_StyleValue">管理后台</h2>
      <p></p>
    </div>
    <div class="Home_StyleAddBox">
      <button class="ant-btn-primary" style="fontsize: 14px">
        <span style="fontsize: 22px; paddingtop: 10px">+</span>&nbsp;新建
      </button>
    </div>
    <ul class="RouterLinkTo">
      <li>
        <router-link class="RouterHomeStyler" to="/home"
          ><van-icon name="setting-o" />&nbsp;工作台</router-link
        >
      </li>
    </ul>
    <ul class="RouterLinkTo">
      <li>
        <van-dropdown-menu>
          <van-dropdown-item v-model="value1" :options="option1" />
          <van-dropdown-item v-model="value2" disabled :options="option2" />
        </van-dropdown-menu>
      </li>
    </ul>
  </div>
</template>

<script>
import { createApp } from "vue";
import { DropdownMenu, DropdownItem } from "vant";

const app = createApp();
app.use(DropdownMenu);
app.use(DropdownItem);
import { ref } from "vue";
export default {
  setup() {
    const value1 = ref(0);
    const option1 = [
      { text: "全部商品", value: 0 },
      { text: "新款商品", value: 1 },
      { text: "活动商品", value: 2 },
    ];

    return {
      value1,
      option1,
      isShow: true,
    };
  },
};
</script>

<style>
.HomeSwiParNavBox {
  width: 100%;
  height: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  color: hsla(0, 0%, 100%, 0.65);
  background: #001529;
}
.NavImgX {
  width: 80px;
  height: 80px;
  border-radius: 50px;
}
.Home_StyleTitle {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.Home_StyleValue {
  color: #fff;
  font-weight: normal;
}
.ant-btn-primary {
  width: 80%;
  height: 50px;
  margin-left: 20px;
  border-radius: 5px;
  color: #fff;
  background: #0188fb;
  border-color: #0188fb;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
  box-shadow: 0 2px 0 rgb(0 0 0 / 5%);
}
.RouterHomeStyler {
  color: #0188fb;
}
.Home_StyleAddBox {
  width: 100%;
  height: 60px;
}
.Home_RouterList {
  width: 100%;
  height: 45px;
  margin-top: 30px;
  margin-left: 20%;
  color: #fff;
  text-decoration: none;
}
.RouterLinkTo {
  width: 100%;
  height: 50px;
  text-align: center;
  line-height: 50px;
}
.RouterLinkTo:hover > li {
  color: #fff;
}
.Home_RouterEditor {
  display: inline-block;
  margin-top: 20px;
  margin-left: 20%;
}
.active {
  color: #fff;
}
</style>